package com.qxzn.app.api.greendao.bean;

import org.greenrobot.greendao.annotation.Entity;
import org.greenrobot.greendao.annotation.Generated;
import org.greenrobot.greendao.annotation.Id;
import org.greenrobot.greendao.annotation.NotNull;
import org.greenrobot.greendao.annotation.Unique;

@Entity
public class ChatMsgBean {
    @Id(autoincrement = true)
    private Long id;//本地数据库自增长id
    @NotNull
    @Unique
    private String msgId;//消息id
    @NotNull
    private String sender;//发送者
    private String content;//文本内容
    private String fileUrl;//文件服务器路径
    private String filePath;//文件本地路径
    private float fileDuration;//文件时长
    @NotNull
    private long createTime;
    @NotNull
    private int msgType = 2;
    @NotNull
    private int direct;//0发送，1接收
    @NotNull
    private int unread;//0未读，1已读
    private int sendStatus;//0发送中，1发送成功，2发送失败
    private int downloadStatus;//0未下载，1下载成功，2下载失败，3下载中
    @NotNull
    private String receiver;//接受者

    @Generated(hash = 1998567638)
    public ChatMsgBean(Long id, @NotNull String msgId, @NotNull String sender,
                       String content, String fileUrl, String filePath, float fileDuration,
                       long createTime, int msgType, int direct, int unread, int sendStatus,
                       int downloadStatus, @NotNull String receiver) {
        this.id = id;
        this.msgId = msgId;
        this.sender = sender;
        this.content = content;
        this.fileUrl = fileUrl;
        this.filePath = filePath;
        this.fileDuration = fileDuration;
        this.createTime = createTime;
        this.msgType = msgType;
        this.direct = direct;
        this.unread = unread;
        this.sendStatus = sendStatus;
        this.downloadStatus = downloadStatus;
        this.receiver = receiver;
    }

    @Generated(hash = 251455779)
    public ChatMsgBean() {
    }

    public Long getId() {
        return this.id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getMsgId() {
        return this.msgId;
    }

    public void setMsgId(String msgId) {
        this.msgId = msgId;
    }

    public String getSender() {
        return this.sender;
    }

    public void setSender(String sender) {
        this.sender = sender;
    }

    public String getContent() {
        return this.content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getFileUrl() {
        return this.fileUrl;
    }

    public void setFileUrl(String fileUrl) {
        this.fileUrl = fileUrl;
    }

    public String getFilePath() {
        return this.filePath;
    }

    public void setFilePath(String filePath) {
        this.filePath = filePath;
    }

    public float getFileDuration() {
        return this.fileDuration;
    }

    public void setFileDuration(float fileDuration) {
        this.fileDuration = fileDuration;
    }

    public long getCreateTime() {
        return this.createTime;
    }

    public void setCreateTime(long createTime) {
        this.createTime = createTime;
    }

    public int getMsgType() {
        return this.msgType;
    }

    public void setMsgType(int msgType) {
        this.msgType = msgType;
    }

    public int getDirect() {
        return this.direct;
    }

    public void setDirect(int direct) {
        this.direct = direct;
    }

    public int getUnread() {
        return this.unread;
    }

    public void setUnread(int unread) {
        this.unread = unread;
    }

    public int getSendStatus() {
        return this.sendStatus;
    }

    public void setSendStatus(int sendStatus) {
        this.sendStatus = sendStatus;
    }

    public int getDownloadStatus() {
        return this.downloadStatus;
    }

    public void setDownloadStatus(int downloadStatus) {
        this.downloadStatus = downloadStatus;
    }

    public String getReceiver() {
        return this.receiver;
    }

    public void setReceiver(String receiver) {
        this.receiver = receiver;
    }
}
